

import nw from "nw-lafjs";
import {ok} from "@/utils/responseUtil";

// @ts-ignore
export default async function (ctx: FunctionContext) {
  //1.查询全部有效的数据
  let  whereJson = {deleted:0}
  let list = await nw.db.findListByWhereJson({
    dbName:"attrGroup",
    whereJson:whereJson
  })
  return ok(list)
}
